package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author Y·C
 * @since 2023-04-23
 */
@Getter
@Setter
  @ApiModel(value = "Classify对象", description = "")
public class Classify implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "mid", type = IdType.AUTO)
      private Integer mid;

      @ApiModelProperty("分类名")
      private String name;

      @ApiModelProperty("缩略名")
      private String slug;

      @ApiModelProperty("描述")
      private String description;


      @ApiModelProperty(value = "创建时间")
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      @TableField(value = "create_time")
      private LocalDateTime createTime;


}
